package com.starrtc.demo.imclient.iMcommon.bean;

/**
 * 通知的bean
 *
 * @param <T> 内容的类型
 */


public class Notification<T> {
    public static final int SESSION_ON = 10;//上线的通知
    public static final int SESSION_OFF = 20;//下线的通知
    public static final int CONNECT_FINISHED = 30;//节点的链接成功
    private int type;
    private T data;

    public Notification() {
    }

    public Notification(T t) {
        data = t;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
